package com.wxg.other.collections;

/**
 * 示例来自“ON JAVA 中文版”基础卷 ch12.11 新特性：记录（record）类型
 */

record R(int a, double b, char c) {
}

public class CopyRecord {
    public static void main(String[] args) {
        var r1 = new R(11, 22.2, 'z');
        var r2 = new R(r1.a(), r1.b(), r1.c());
        System.out.println(r1.equals(r2));
    }
}
